import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  { path: '/', redirect: '/general' },
  { path: '/general', component: () => import('@/windows/settings/pages/general.vue') },
  { path: '/shortcuts', component: () => import('@/windows/settings/pages/shortcuts.vue') },
  {
    path: '/password-manager',
    component: () => import('@/windows/settings/pages/password-manager.vue')
  }
]

// 这里的 auto-routes 会自动扫描本目录下的 pages 文件夹
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes
})

export default router
